Skip to content

Conversation

@mathurk
Copy link
Collaborator

@mathurk mathurk commented Dec 27, 2025

Development Package

  • Use uipath pack --nolock to get the latest dev build from this PR (requires version range).
  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath==2.3.5.dev1010533572",

  # Any version from PR
  "uipath>=2.3.5.dev1010530000,<2.3.5.dev1010540000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath = { index = "testpypi" }

[tool.uv]
override-dependencies = [
    "uipath>=2.3.5.dev1010530000,<2.3.5.dev1010540000",
]

@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Dec 27, 2025
@mathurk mathurk added the build:dev Create a dev build from the pr label Dec 30, 2025
@cristipufu
Copy link
Member

@mathurk @Chibionos we added this "metadata" bag to UiPathRuntimeSchema: UiPath/uipath-runtime-python@01ec08b

You can add these settings in the low-code agents repo, and access them here via the schema.metadata prop. It should simplify things

Copy link
Contributor

@Chibionos Chibionos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand why metadata might be a concern as we are adding a new property to the command and they can make the command use metadata

@mathurk mathurk force-pushed the feat/model_settings_id branch from 9d78ed5 to 2c85854 Compare January 2, 2026 19:28
@mathurk mathurk merged commit 287b23c into main Jan 2, 2026
114 of 115 checks passed
@mathurk mathurk deleted the feat/model_settings_id branch January 2, 2026 20:45
Chibionos pushed a commit that referenced this pull request Jan 3, 2026
…adata

Remove the incorrect implementation that wrapped the factory and created
temporary files. Instead, read agent settings from schema.metadata which
is populated by the low-code agents runtime.

### Changes

- Remove ConfigurableRuntimeFactory class and tests
- Update _get_agent_model() to read from schema.metadata["settings"]["model"]
- Keep fallback to protocol for backwards compatibility
- Update uipath-runtime dependency to >=0.3.4 (includes metadata field)
- Remove temp file cleanup from __aexit__

### Why this change?

PR #1053 introduced a design that broke separation of concerns:
- Wrapped the factory unnecessarily
- Deserialized agent.json in the CLI layer
- Created temporary modified JSON files
- Required cleanup of temp files

The correct design (per @cristipufu feedback):
- Low-code repo populates schema.metadata with settings
- CLI reads settings from schema.metadata
- No temp files, no factory wrapper, no JSON deserialization in CLI

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:dev Create a dev build from the pr test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants